<com:TPanel CssClass="portlet" >
	<com:TPanel CssClass="pollportlet" >
		<com:TPanel id="pnlShowPollChoices" GroupingText="<%[Poll]%>">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td><%= $this->Poll->question %></td>
				</tr>
				<tr>
					<td><com:TRadioButtonList DataTextField="answer" DataValueField="id" ValidationGroup="castvote" Id="ChoiceRb" /></td>
				</tr>
				<tr>
					<td><com:TRequiredFieldValidator Id="valChoice" ControlToValidate="ChoiceRb" Display="Dynamic"	ErrorMessage="<%[Select one.]%>" ValidationGroup="castvote"	/></td>
				</tr>
				<tr>
					<td align="center"><com:TLinkButton Id="CastVote", Text="<%[Vote]%>" ValidationGroup="castvote" onClick="CastVote" /></td>
				</tr>
			</table>
		</com:TPanel>

		<com:TPanel id="pnlPollResult" Visible="false" GroupingText="<%[Result]%>">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td><%=$this->Poll->question %></td>
				</tr>
				<com:TRepeater Id="rptPollresult" >
				<prop:ItemTemplate>
				<tr>
					<td><%#$this->DataItem['answer'] %> (<%#$this->DataItem['votes'] %>)<br/><div style='<%#$this->DataItem['barstyle'] %>'>&nbsp;</div></td><td><%#$this->DataItem['perc'] %>%</td>
				</tr>
				</prop:ItemTemplate>
				</com:TRepeater>
			</table>
		</com:TPanel>
	</com:TPanel>
</com:TPanel>